package com.demo.listener;

import org.springframework.amqp.core.ExchangeTypes;
import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class listener {
//    @RabbitListener(bindings = @QueueBinding(value = @Queue(value = "que2",durable = "true"),
//    exchange = @Exchange(value = "listener.exchange",type = ExchangeTypes.TOPIC),
//    key={"#.#"}))
//    public void get(String mes){
//        System.out.println("..."+mes);
//    }
}
